package PTA2.ti8;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int oddSum=0;
        int evenSum=0;
        for (int i = 0; i < n; i++) {
            int number = scanner.nextInt();
            if (number % 2 == 0) {
                evenSum += number;
            } else {
                oddSum += number;
            }
        }
        System.out.printf("奇数和=%d, 偶数和=%d",oddSum,evenSum);
        scanner.close();
    }
}
